package com.springboot.demo.model.example;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class OrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Time> timeList = new ArrayList<java.sql.Time>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                timeList.add(new java.sql.Time(iter.next().getTime()));
            }
            addCriterion(condition, timeList, property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value1.getTime()), new java.sql.Time(value2.getTime()), property);
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Integer value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Integer value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Integer value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Integer value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Integer value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Integer> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Integer> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Integer value1, Integer value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Integer value1, Integer value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNull() {
            addCriterion("customer_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNotNull() {
            addCriterion("customer_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdEqualTo(Integer value) {
            addCriterion("customer_id =", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotEqualTo(Integer value) {
            addCriterion("customer_id <>", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThan(Integer value) {
            addCriterion("customer_id >", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("customer_id >=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThan(Integer value) {
            addCriterion("customer_id <", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThanOrEqualTo(Integer value) {
            addCriterion("customer_id <=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIn(List<Integer> values) {
            addCriterion("customer_id in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotIn(List<Integer> values) {
            addCriterion("customer_id not in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdBetween(Integer value1, Integer value2) {
            addCriterion("customer_id between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("customer_id not between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andOrderNumberIsNull() {
            addCriterion("order_number is null");
            return (Criteria) this;
        }

        public Criteria andOrderNumberIsNotNull() {
            addCriterion("order_number is not null");
            return (Criteria) this;
        }

        public Criteria andOrderNumberEqualTo(String value) {
            addCriterion("order_number =", value, "orderNumber");
            return (Criteria) this;
        }

        public Criteria andOrderNumberNotEqualTo(String value) {
            addCriterion("order_number <>", value, "orderNumber");
            return (Criteria) this;
        }

        public Criteria andOrderNumberGreaterThan(String value) {
            addCriterion("order_number >", value, "orderNumber");
            return (Criteria) this;
        }

        public Criteria andOrderNumberGreaterThanOrEqualTo(String value) {
            addCriterion("order_number >=", value, "orderNumber");
            return (Criteria) this;
        }

        public Criteria andOrderNumberLessThan(String value) {
            addCriterion("order_number <", value, "orderNumber");
            return (Criteria) this;
        }

        public Criteria andOrderNumberLessThanOrEqualTo(String value) {
            addCriterion("order_number <=", value, "orderNumber");
            return (Criteria) this;
        }

        public Criteria andOrderNumberLike(String value) {
            addCriterion("order_number like", value, "orderNumber");
            return (Criteria) this;
        }

        public Criteria andOrderNumberNotLike(String value) {
            addCriterion("order_number not like", value, "orderNumber");
            return (Criteria) this;
        }

        public Criteria andOrderNumberIn(List<String> values) {
            addCriterion("order_number in", values, "orderNumber");
            return (Criteria) this;
        }

        public Criteria andOrderNumberNotIn(List<String> values) {
            addCriterion("order_number not in", values, "orderNumber");
            return (Criteria) this;
        }

        public Criteria andOrderNumberBetween(String value1, String value2) {
            addCriterion("order_number between", value1, value2, "orderNumber");
            return (Criteria) this;
        }

        public Criteria andOrderNumberNotBetween(String value1, String value2) {
            addCriterion("order_number not between", value1, value2, "orderNumber");
            return (Criteria) this;
        }

        public Criteria andStaffIdIsNull() {
            addCriterion("staff_id is null");
            return (Criteria) this;
        }

        public Criteria andStaffIdIsNotNull() {
            addCriterion("staff_id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffIdEqualTo(Integer value) {
            addCriterion("staff_id =", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotEqualTo(Integer value) {
            addCriterion("staff_id <>", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdGreaterThan(Integer value) {
            addCriterion("staff_id >", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_id >=", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLessThan(Integer value) {
            addCriterion("staff_id <", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_id <=", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdIn(List<Integer> values) {
            addCriterion("staff_id in", values, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotIn(List<Integer> values) {
            addCriterion("staff_id not in", values, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_id between", value1, value2, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_id not between", value1, value2, "staffId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("goods_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(Integer value) {
            addCriterion("goods_id =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(Integer value) {
            addCriterion("goods_id <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(Integer value) {
            addCriterion("goods_id >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_id >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(Integer value) {
            addCriterion("goods_id <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("goods_id <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<Integer> values) {
            addCriterion("goods_id in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<Integer> values) {
            addCriterion("goods_id not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("goods_id between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_id not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeIsNull() {
            addCriterion("goods_type is null");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeIsNotNull() {
            addCriterion("goods_type is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeEqualTo(Integer value) {
            addCriterion("goods_type =", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeNotEqualTo(Integer value) {
            addCriterion("goods_type <>", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeGreaterThan(Integer value) {
            addCriterion("goods_type >", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_type >=", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeLessThan(Integer value) {
            addCriterion("goods_type <", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeLessThanOrEqualTo(Integer value) {
            addCriterion("goods_type <=", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeIn(List<Integer> values) {
            addCriterion("goods_type in", values, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeNotIn(List<Integer> values) {
            addCriterion("goods_type not in", values, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeBetween(Integer value1, Integer value2) {
            addCriterion("goods_type between", value1, value2, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_type not between", value1, value2, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIsNull() {
            addCriterion("goods_name is null");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIsNotNull() {
            addCriterion("goods_name is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsNameEqualTo(String value) {
            addCriterion("goods_name =", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotEqualTo(String value) {
            addCriterion("goods_name <>", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameGreaterThan(String value) {
            addCriterion("goods_name >", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameGreaterThanOrEqualTo(String value) {
            addCriterion("goods_name >=", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLessThan(String value) {
            addCriterion("goods_name <", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLessThanOrEqualTo(String value) {
            addCriterion("goods_name <=", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLike(String value) {
            addCriterion("goods_name like", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotLike(String value) {
            addCriterion("goods_name not like", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIn(List<String> values) {
            addCriterion("goods_name in", values, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotIn(List<String> values) {
            addCriterion("goods_name not in", values, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameBetween(String value1, String value2) {
            addCriterion("goods_name between", value1, value2, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotBetween(String value1, String value2) {
            addCriterion("goods_name not between", value1, value2, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeCodeIsNull() {
            addCriterion("goods_type_code is null");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeCodeIsNotNull() {
            addCriterion("goods_type_code is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeCodeEqualTo(String value) {
            addCriterion("goods_type_code =", value, "goodsTypeCode");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeCodeNotEqualTo(String value) {
            addCriterion("goods_type_code <>", value, "goodsTypeCode");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeCodeGreaterThan(String value) {
            addCriterion("goods_type_code >", value, "goodsTypeCode");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeCodeGreaterThanOrEqualTo(String value) {
            addCriterion("goods_type_code >=", value, "goodsTypeCode");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeCodeLessThan(String value) {
            addCriterion("goods_type_code <", value, "goodsTypeCode");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeCodeLessThanOrEqualTo(String value) {
            addCriterion("goods_type_code <=", value, "goodsTypeCode");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeCodeLike(String value) {
            addCriterion("goods_type_code like", value, "goodsTypeCode");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeCodeNotLike(String value) {
            addCriterion("goods_type_code not like", value, "goodsTypeCode");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeCodeIn(List<String> values) {
            addCriterion("goods_type_code in", values, "goodsTypeCode");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeCodeNotIn(List<String> values) {
            addCriterion("goods_type_code not in", values, "goodsTypeCode");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeCodeBetween(String value1, String value2) {
            addCriterion("goods_type_code between", value1, value2, "goodsTypeCode");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeCodeNotBetween(String value1, String value2) {
            addCriterion("goods_type_code not between", value1, value2, "goodsTypeCode");
            return (Criteria) this;
        }

        public Criteria andIsBabyIsNull() {
            addCriterion("is_baby is null");
            return (Criteria) this;
        }

        public Criteria andIsBabyIsNotNull() {
            addCriterion("is_baby is not null");
            return (Criteria) this;
        }

        public Criteria andIsBabyEqualTo(Integer value) {
            addCriterion("is_baby =", value, "isBaby");
            return (Criteria) this;
        }

        public Criteria andIsBabyNotEqualTo(Integer value) {
            addCriterion("is_baby <>", value, "isBaby");
            return (Criteria) this;
        }

        public Criteria andIsBabyGreaterThan(Integer value) {
            addCriterion("is_baby >", value, "isBaby");
            return (Criteria) this;
        }

        public Criteria andIsBabyGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_baby >=", value, "isBaby");
            return (Criteria) this;
        }

        public Criteria andIsBabyLessThan(Integer value) {
            addCriterion("is_baby <", value, "isBaby");
            return (Criteria) this;
        }

        public Criteria andIsBabyLessThanOrEqualTo(Integer value) {
            addCriterion("is_baby <=", value, "isBaby");
            return (Criteria) this;
        }

        public Criteria andIsBabyIn(List<Integer> values) {
            addCriterion("is_baby in", values, "isBaby");
            return (Criteria) this;
        }

        public Criteria andIsBabyNotIn(List<Integer> values) {
            addCriterion("is_baby not in", values, "isBaby");
            return (Criteria) this;
        }

        public Criteria andIsBabyBetween(Integer value1, Integer value2) {
            addCriterion("is_baby between", value1, value2, "isBaby");
            return (Criteria) this;
        }

        public Criteria andIsBabyNotBetween(Integer value1, Integer value2) {
            addCriterion("is_baby not between", value1, value2, "isBaby");
            return (Criteria) this;
        }

        public Criteria andBabyExpectedDateIsNull() {
            addCriterion("baby_expected_date is null");
            return (Criteria) this;
        }

        public Criteria andBabyExpectedDateIsNotNull() {
            addCriterion("baby_expected_date is not null");
            return (Criteria) this;
        }

        public Criteria andBabyExpectedDateEqualTo(Date value) {
            addCriterionForJDBCDate("baby_expected_date =", value, "babyExpectedDate");
            return (Criteria) this;
        }

        public Criteria andBabyExpectedDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("baby_expected_date <>", value, "babyExpectedDate");
            return (Criteria) this;
        }

        public Criteria andBabyExpectedDateGreaterThan(Date value) {
            addCriterionForJDBCDate("baby_expected_date >", value, "babyExpectedDate");
            return (Criteria) this;
        }

        public Criteria andBabyExpectedDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("baby_expected_date >=", value, "babyExpectedDate");
            return (Criteria) this;
        }

        public Criteria andBabyExpectedDateLessThan(Date value) {
            addCriterionForJDBCDate("baby_expected_date <", value, "babyExpectedDate");
            return (Criteria) this;
        }

        public Criteria andBabyExpectedDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("baby_expected_date <=", value, "babyExpectedDate");
            return (Criteria) this;
        }

        public Criteria andBabyExpectedDateIn(List<Date> values) {
            addCriterionForJDBCDate("baby_expected_date in", values, "babyExpectedDate");
            return (Criteria) this;
        }

        public Criteria andBabyExpectedDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("baby_expected_date not in", values, "babyExpectedDate");
            return (Criteria) this;
        }

        public Criteria andBabyExpectedDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("baby_expected_date between", value1, value2, "babyExpectedDate");
            return (Criteria) this;
        }

        public Criteria andBabyExpectedDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("baby_expected_date not between", value1, value2, "babyExpectedDate");
            return (Criteria) this;
        }

        public Criteria andBabySexIsNull() {
            addCriterion("baby_sex is null");
            return (Criteria) this;
        }

        public Criteria andBabySexIsNotNull() {
            addCriterion("baby_sex is not null");
            return (Criteria) this;
        }

        public Criteria andBabySexEqualTo(Integer value) {
            addCriterion("baby_sex =", value, "babySex");
            return (Criteria) this;
        }

        public Criteria andBabySexNotEqualTo(Integer value) {
            addCriterion("baby_sex <>", value, "babySex");
            return (Criteria) this;
        }

        public Criteria andBabySexGreaterThan(Integer value) {
            addCriterion("baby_sex >", value, "babySex");
            return (Criteria) this;
        }

        public Criteria andBabySexGreaterThanOrEqualTo(Integer value) {
            addCriterion("baby_sex >=", value, "babySex");
            return (Criteria) this;
        }

        public Criteria andBabySexLessThan(Integer value) {
            addCriterion("baby_sex <", value, "babySex");
            return (Criteria) this;
        }

        public Criteria andBabySexLessThanOrEqualTo(Integer value) {
            addCriterion("baby_sex <=", value, "babySex");
            return (Criteria) this;
        }

        public Criteria andBabySexIn(List<Integer> values) {
            addCriterion("baby_sex in", values, "babySex");
            return (Criteria) this;
        }

        public Criteria andBabySexNotIn(List<Integer> values) {
            addCriterion("baby_sex not in", values, "babySex");
            return (Criteria) this;
        }

        public Criteria andBabySexBetween(Integer value1, Integer value2) {
            addCriterion("baby_sex between", value1, value2, "babySex");
            return (Criteria) this;
        }

        public Criteria andBabySexNotBetween(Integer value1, Integer value2) {
            addCriterion("baby_sex not between", value1, value2, "babySex");
            return (Criteria) this;
        }

        public Criteria andBabyMonthsAgeIsNull() {
            addCriterion("baby_months_age is null");
            return (Criteria) this;
        }

        public Criteria andBabyMonthsAgeIsNotNull() {
            addCriterion("baby_months_age is not null");
            return (Criteria) this;
        }

        public Criteria andBabyMonthsAgeEqualTo(String value) {
            addCriterion("baby_months_age =", value, "babyMonthsAge");
            return (Criteria) this;
        }

        public Criteria andBabyMonthsAgeNotEqualTo(String value) {
            addCriterion("baby_months_age <>", value, "babyMonthsAge");
            return (Criteria) this;
        }

        public Criteria andBabyMonthsAgeGreaterThan(String value) {
            addCriterion("baby_months_age >", value, "babyMonthsAge");
            return (Criteria) this;
        }

        public Criteria andBabyMonthsAgeGreaterThanOrEqualTo(String value) {
            addCriterion("baby_months_age >=", value, "babyMonthsAge");
            return (Criteria) this;
        }

        public Criteria andBabyMonthsAgeLessThan(String value) {
            addCriterion("baby_months_age <", value, "babyMonthsAge");
            return (Criteria) this;
        }

        public Criteria andBabyMonthsAgeLessThanOrEqualTo(String value) {
            addCriterion("baby_months_age <=", value, "babyMonthsAge");
            return (Criteria) this;
        }

        public Criteria andBabyMonthsAgeLike(String value) {
            addCriterion("baby_months_age like", value, "babyMonthsAge");
            return (Criteria) this;
        }

        public Criteria andBabyMonthsAgeNotLike(String value) {
            addCriterion("baby_months_age not like", value, "babyMonthsAge");
            return (Criteria) this;
        }

        public Criteria andBabyMonthsAgeIn(List<String> values) {
            addCriterion("baby_months_age in", values, "babyMonthsAge");
            return (Criteria) this;
        }

        public Criteria andBabyMonthsAgeNotIn(List<String> values) {
            addCriterion("baby_months_age not in", values, "babyMonthsAge");
            return (Criteria) this;
        }

        public Criteria andBabyMonthsAgeBetween(String value1, String value2) {
            addCriterion("baby_months_age between", value1, value2, "babyMonthsAge");
            return (Criteria) this;
        }

        public Criteria andBabyMonthsAgeNotBetween(String value1, String value2) {
            addCriterion("baby_months_age not between", value1, value2, "babyMonthsAge");
            return (Criteria) this;
        }

        public Criteria andServiceLevelIsNull() {
            addCriterion("service_level is null");
            return (Criteria) this;
        }

        public Criteria andServiceLevelIsNotNull() {
            addCriterion("service_level is not null");
            return (Criteria) this;
        }

        public Criteria andServiceLevelEqualTo(String value) {
            addCriterion("service_level =", value, "serviceLevel");
            return (Criteria) this;
        }

        public Criteria andServiceLevelNotEqualTo(String value) {
            addCriterion("service_level <>", value, "serviceLevel");
            return (Criteria) this;
        }

        public Criteria andServiceLevelGreaterThan(String value) {
            addCriterion("service_level >", value, "serviceLevel");
            return (Criteria) this;
        }

        public Criteria andServiceLevelGreaterThanOrEqualTo(String value) {
            addCriterion("service_level >=", value, "serviceLevel");
            return (Criteria) this;
        }

        public Criteria andServiceLevelLessThan(String value) {
            addCriterion("service_level <", value, "serviceLevel");
            return (Criteria) this;
        }

        public Criteria andServiceLevelLessThanOrEqualTo(String value) {
            addCriterion("service_level <=", value, "serviceLevel");
            return (Criteria) this;
        }

        public Criteria andServiceLevelLike(String value) {
            addCriterion("service_level like", value, "serviceLevel");
            return (Criteria) this;
        }

        public Criteria andServiceLevelNotLike(String value) {
            addCriterion("service_level not like", value, "serviceLevel");
            return (Criteria) this;
        }

        public Criteria andServiceLevelIn(List<String> values) {
            addCriterion("service_level in", values, "serviceLevel");
            return (Criteria) this;
        }

        public Criteria andServiceLevelNotIn(List<String> values) {
            addCriterion("service_level not in", values, "serviceLevel");
            return (Criteria) this;
        }

        public Criteria andServiceLevelBetween(String value1, String value2) {
            addCriterion("service_level between", value1, value2, "serviceLevel");
            return (Criteria) this;
        }

        public Criteria andServiceLevelNotBetween(String value1, String value2) {
            addCriterion("service_level not between", value1, value2, "serviceLevel");
            return (Criteria) this;
        }

        public Criteria andServiceBeginTimeIsNull() {
            addCriterion("service_begin_time is null");
            return (Criteria) this;
        }

        public Criteria andServiceBeginTimeIsNotNull() {
            addCriterion("service_begin_time is not null");
            return (Criteria) this;
        }

        public Criteria andServiceBeginTimeEqualTo(Date value) {
            addCriterionForJDBCDate("service_begin_time =", value, "serviceBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceBeginTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("service_begin_time <>", value, "serviceBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceBeginTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("service_begin_time >", value, "serviceBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceBeginTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("service_begin_time >=", value, "serviceBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceBeginTimeLessThan(Date value) {
            addCriterionForJDBCDate("service_begin_time <", value, "serviceBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceBeginTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("service_begin_time <=", value, "serviceBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceBeginTimeIn(List<Date> values) {
            addCriterionForJDBCDate("service_begin_time in", values, "serviceBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceBeginTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("service_begin_time not in", values, "serviceBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceBeginTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("service_begin_time between", value1, value2, "serviceBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceBeginTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("service_begin_time not between", value1, value2, "serviceBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceEndTimeIsNull() {
            addCriterion("service_end_time is null");
            return (Criteria) this;
        }

        public Criteria andServiceEndTimeIsNotNull() {
            addCriterion("service_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andServiceEndTimeEqualTo(Date value) {
            addCriterionForJDBCDate("service_end_time =", value, "serviceEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceEndTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("service_end_time <>", value, "serviceEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceEndTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("service_end_time >", value, "serviceEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("service_end_time >=", value, "serviceEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceEndTimeLessThan(Date value) {
            addCriterionForJDBCDate("service_end_time <", value, "serviceEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceEndTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("service_end_time <=", value, "serviceEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceEndTimeIn(List<Date> values) {
            addCriterionForJDBCDate("service_end_time in", values, "serviceEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceEndTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("service_end_time not in", values, "serviceEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceEndTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("service_end_time between", value1, value2, "serviceEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceEndTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("service_end_time not between", value1, value2, "serviceEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayBeginTimeIsNull() {
            addCriterion("service_day_begin_time is null");
            return (Criteria) this;
        }

        public Criteria andServiceDayBeginTimeIsNotNull() {
            addCriterion("service_day_begin_time is not null");
            return (Criteria) this;
        }

        public Criteria andServiceDayBeginTimeEqualTo(Date value) {
            addCriterionForJDBCTime("service_day_begin_time =", value, "serviceDayBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayBeginTimeNotEqualTo(Date value) {
            addCriterionForJDBCTime("service_day_begin_time <>", value, "serviceDayBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayBeginTimeGreaterThan(Date value) {
            addCriterionForJDBCTime("service_day_begin_time >", value, "serviceDayBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayBeginTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("service_day_begin_time >=", value, "serviceDayBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayBeginTimeLessThan(Date value) {
            addCriterionForJDBCTime("service_day_begin_time <", value, "serviceDayBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayBeginTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("service_day_begin_time <=", value, "serviceDayBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayBeginTimeIn(List<Date> values) {
            addCriterionForJDBCTime("service_day_begin_time in", values, "serviceDayBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayBeginTimeNotIn(List<Date> values) {
            addCriterionForJDBCTime("service_day_begin_time not in", values, "serviceDayBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayBeginTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("service_day_begin_time between", value1, value2, "serviceDayBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayBeginTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("service_day_begin_time not between", value1, value2, "serviceDayBeginTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayEndTimeIsNull() {
            addCriterion("service_day_end_time is null");
            return (Criteria) this;
        }

        public Criteria andServiceDayEndTimeIsNotNull() {
            addCriterion("service_day_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andServiceDayEndTimeEqualTo(Date value) {
            addCriterionForJDBCTime("service_day_end_time =", value, "serviceDayEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayEndTimeNotEqualTo(Date value) {
            addCriterionForJDBCTime("service_day_end_time <>", value, "serviceDayEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayEndTimeGreaterThan(Date value) {
            addCriterionForJDBCTime("service_day_end_time >", value, "serviceDayEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("service_day_end_time >=", value, "serviceDayEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayEndTimeLessThan(Date value) {
            addCriterionForJDBCTime("service_day_end_time <", value, "serviceDayEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayEndTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("service_day_end_time <=", value, "serviceDayEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayEndTimeIn(List<Date> values) {
            addCriterionForJDBCTime("service_day_end_time in", values, "serviceDayEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayEndTimeNotIn(List<Date> values) {
            addCriterionForJDBCTime("service_day_end_time not in", values, "serviceDayEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayEndTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("service_day_end_time between", value1, value2, "serviceDayEndTime");
            return (Criteria) this;
        }

        public Criteria andServiceDayEndTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("service_day_end_time not between", value1, value2, "serviceDayEndTime");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("`name` is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("`name` is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("`name` =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("`name` <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("`name` >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("`name` >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("`name` <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("`name` <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("`name` like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("`name` not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("`name` in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("`name` not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("`name` between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("`name` not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNull() {
            addCriterion("phone is null");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNotNull() {
            addCriterion("phone is not null");
            return (Criteria) this;
        }

        public Criteria andPhoneEqualTo(String value) {
            addCriterion("phone =", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotEqualTo(String value) {
            addCriterion("phone <>", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThan(String value) {
            addCriterion("phone >", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("phone >=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThan(String value) {
            addCriterion("phone <", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThanOrEqualTo(String value) {
            addCriterion("phone <=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLike(String value) {
            addCriterion("phone like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotLike(String value) {
            addCriterion("phone not like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneIn(List<String> values) {
            addCriterion("phone in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotIn(List<String> values) {
            addCriterion("phone not in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneBetween(String value1, String value2) {
            addCriterion("phone between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotBetween(String value1, String value2) {
            addCriterion("phone not between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andDetailedAddressIsNull() {
            addCriterion("detailed_address is null");
            return (Criteria) this;
        }

        public Criteria andDetailedAddressIsNotNull() {
            addCriterion("detailed_address is not null");
            return (Criteria) this;
        }

        public Criteria andDetailedAddressEqualTo(String value) {
            addCriterion("detailed_address =", value, "detailedAddress");
            return (Criteria) this;
        }

        public Criteria andDetailedAddressNotEqualTo(String value) {
            addCriterion("detailed_address <>", value, "detailedAddress");
            return (Criteria) this;
        }

        public Criteria andDetailedAddressGreaterThan(String value) {
            addCriterion("detailed_address >", value, "detailedAddress");
            return (Criteria) this;
        }

        public Criteria andDetailedAddressGreaterThanOrEqualTo(String value) {
            addCriterion("detailed_address >=", value, "detailedAddress");
            return (Criteria) this;
        }

        public Criteria andDetailedAddressLessThan(String value) {
            addCriterion("detailed_address <", value, "detailedAddress");
            return (Criteria) this;
        }

        public Criteria andDetailedAddressLessThanOrEqualTo(String value) {
            addCriterion("detailed_address <=", value, "detailedAddress");
            return (Criteria) this;
        }

        public Criteria andDetailedAddressLike(String value) {
            addCriterion("detailed_address like", value, "detailedAddress");
            return (Criteria) this;
        }

        public Criteria andDetailedAddressNotLike(String value) {
            addCriterion("detailed_address not like", value, "detailedAddress");
            return (Criteria) this;
        }

        public Criteria andDetailedAddressIn(List<String> values) {
            addCriterion("detailed_address in", values, "detailedAddress");
            return (Criteria) this;
        }

        public Criteria andDetailedAddressNotIn(List<String> values) {
            addCriterion("detailed_address not in", values, "detailedAddress");
            return (Criteria) this;
        }

        public Criteria andDetailedAddressBetween(String value1, String value2) {
            addCriterion("detailed_address between", value1, value2, "detailedAddress");
            return (Criteria) this;
        }

        public Criteria andDetailedAddressNotBetween(String value1, String value2) {
            addCriterion("detailed_address not between", value1, value2, "detailedAddress");
            return (Criteria) this;
        }

        public Criteria andOrderPriceIsNull() {
            addCriterion("order_price is null");
            return (Criteria) this;
        }

        public Criteria andOrderPriceIsNotNull() {
            addCriterion("order_price is not null");
            return (Criteria) this;
        }

        public Criteria andOrderPriceEqualTo(BigDecimal value) {
            addCriterion("order_price =", value, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceNotEqualTo(BigDecimal value) {
            addCriterion("order_price <>", value, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceGreaterThan(BigDecimal value) {
            addCriterion("order_price >", value, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("order_price >=", value, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceLessThan(BigDecimal value) {
            addCriterion("order_price <", value, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("order_price <=", value, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceIn(List<BigDecimal> values) {
            addCriterion("order_price in", values, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceNotIn(List<BigDecimal> values) {
            addCriterion("order_price not in", values, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_price between", value1, value2, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andOrderPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_price not between", value1, value2, "orderPrice");
            return (Criteria) this;
        }

        public Criteria andPayStatusIsNull() {
            addCriterion("pay_status is null");
            return (Criteria) this;
        }

        public Criteria andPayStatusIsNotNull() {
            addCriterion("pay_status is not null");
            return (Criteria) this;
        }

        public Criteria andPayStatusEqualTo(Integer value) {
            addCriterion("pay_status =", value, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusNotEqualTo(Integer value) {
            addCriterion("pay_status <>", value, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusGreaterThan(Integer value) {
            addCriterion("pay_status >", value, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_status >=", value, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusLessThan(Integer value) {
            addCriterion("pay_status <", value, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusLessThanOrEqualTo(Integer value) {
            addCriterion("pay_status <=", value, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusIn(List<Integer> values) {
            addCriterion("pay_status in", values, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusNotIn(List<Integer> values) {
            addCriterion("pay_status not in", values, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusBetween(Integer value1, Integer value2) {
            addCriterion("pay_status between", value1, value2, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_status not between", value1, value2, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayPriceIsNull() {
            addCriterion("pay_price is null");
            return (Criteria) this;
        }

        public Criteria andPayPriceIsNotNull() {
            addCriterion("pay_price is not null");
            return (Criteria) this;
        }

        public Criteria andPayPriceEqualTo(BigDecimal value) {
            addCriterion("pay_price =", value, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceNotEqualTo(BigDecimal value) {
            addCriterion("pay_price <>", value, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceGreaterThan(BigDecimal value) {
            addCriterion("pay_price >", value, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_price >=", value, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceLessThan(BigDecimal value) {
            addCriterion("pay_price <", value, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_price <=", value, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceIn(List<BigDecimal> values) {
            addCriterion("pay_price in", values, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceNotIn(List<BigDecimal> values) {
            addCriterion("pay_price not in", values, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_price between", value1, value2, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_price not between", value1, value2, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayDateIsNull() {
            addCriterion("pay_date is null");
            return (Criteria) this;
        }

        public Criteria andPayDateIsNotNull() {
            addCriterion("pay_date is not null");
            return (Criteria) this;
        }

        public Criteria andPayDateEqualTo(Date value) {
            addCriterion("pay_date =", value, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateNotEqualTo(Date value) {
            addCriterion("pay_date <>", value, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateGreaterThan(Date value) {
            addCriterion("pay_date >", value, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateGreaterThanOrEqualTo(Date value) {
            addCriterion("pay_date >=", value, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateLessThan(Date value) {
            addCriterion("pay_date <", value, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateLessThanOrEqualTo(Date value) {
            addCriterion("pay_date <=", value, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateIn(List<Date> values) {
            addCriterion("pay_date in", values, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateNotIn(List<Date> values) {
            addCriterion("pay_date not in", values, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateBetween(Date value1, Date value2) {
            addCriterion("pay_date between", value1, value2, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateNotBetween(Date value1, Date value2) {
            addCriterion("pay_date not between", value1, value2, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayTypeIsNull() {
            addCriterion("pay_type is null");
            return (Criteria) this;
        }

        public Criteria andPayTypeIsNotNull() {
            addCriterion("pay_type is not null");
            return (Criteria) this;
        }

        public Criteria andPayTypeEqualTo(Integer value) {
            addCriterion("pay_type =", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotEqualTo(Integer value) {
            addCriterion("pay_type <>", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeGreaterThan(Integer value) {
            addCriterion("pay_type >", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_type >=", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeLessThan(Integer value) {
            addCriterion("pay_type <", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeLessThanOrEqualTo(Integer value) {
            addCriterion("pay_type <=", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeIn(List<Integer> values) {
            addCriterion("pay_type in", values, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotIn(List<Integer> values) {
            addCriterion("pay_type not in", values, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeBetween(Integer value1, Integer value2) {
            addCriterion("pay_type between", value1, value2, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_type not between", value1, value2, "payType");
            return (Criteria) this;
        }

        public Criteria andOrderStatusIsNull() {
            addCriterion("order_status is null");
            return (Criteria) this;
        }

        public Criteria andOrderStatusIsNotNull() {
            addCriterion("order_status is not null");
            return (Criteria) this;
        }

        public Criteria andOrderStatusEqualTo(Integer value) {
            addCriterion("order_status =", value, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusNotEqualTo(Integer value) {
            addCriterion("order_status <>", value, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusGreaterThan(Integer value) {
            addCriterion("order_status >", value, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_status >=", value, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusLessThan(Integer value) {
            addCriterion("order_status <", value, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusLessThanOrEqualTo(Integer value) {
            addCriterion("order_status <=", value, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusIn(List<Integer> values) {
            addCriterion("order_status in", values, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusNotIn(List<Integer> values) {
            addCriterion("order_status not in", values, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusBetween(Integer value1, Integer value2) {
            addCriterion("order_status between", value1, value2, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andOrderStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("order_status not between", value1, value2, "orderStatus");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNull() {
            addCriterion("create_user_id is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNotNull() {
            addCriterion("create_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdEqualTo(Integer value) {
            addCriterion("create_user_id =", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotEqualTo(Integer value) {
            addCriterion("create_user_id <>", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThan(Integer value) {
            addCriterion("create_user_id >", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("create_user_id >=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThan(Integer value) {
            addCriterion("create_user_id <", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("create_user_id <=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIn(List<Integer> values) {
            addCriterion("create_user_id in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotIn(List<Integer> values) {
            addCriterion("create_user_id not in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdBetween(Integer value1, Integer value2) {
            addCriterion("create_user_id between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("create_user_id not between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIsNull() {
            addCriterion("update_user_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIsNotNull() {
            addCriterion("update_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdEqualTo(Integer value) {
            addCriterion("update_user_id =", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotEqualTo(Integer value) {
            addCriterion("update_user_id <>", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdGreaterThan(Integer value) {
            addCriterion("update_user_id >", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("update_user_id >=", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdLessThan(Integer value) {
            addCriterion("update_user_id <", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("update_user_id <=", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIn(List<Integer> values) {
            addCriterion("update_user_id in", values, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotIn(List<Integer> values) {
            addCriterion("update_user_id not in", values, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdBetween(Integer value1, Integer value2) {
            addCriterion("update_user_id between", value1, value2, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("update_user_id not between", value1, value2, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andServeContentIsNull() {
            addCriterion("serve_content is null");
            return (Criteria) this;
        }

        public Criteria andServeContentIsNotNull() {
            addCriterion("serve_content is not null");
            return (Criteria) this;
        }

        public Criteria andServeContentEqualTo(String value) {
            addCriterion("serve_content =", value, "serveContent");
            return (Criteria) this;
        }

        public Criteria andServeContentNotEqualTo(String value) {
            addCriterion("serve_content <>", value, "serveContent");
            return (Criteria) this;
        }

        public Criteria andServeContentGreaterThan(String value) {
            addCriterion("serve_content >", value, "serveContent");
            return (Criteria) this;
        }

        public Criteria andServeContentGreaterThanOrEqualTo(String value) {
            addCriterion("serve_content >=", value, "serveContent");
            return (Criteria) this;
        }

        public Criteria andServeContentLessThan(String value) {
            addCriterion("serve_content <", value, "serveContent");
            return (Criteria) this;
        }

        public Criteria andServeContentLessThanOrEqualTo(String value) {
            addCriterion("serve_content <=", value, "serveContent");
            return (Criteria) this;
        }

        public Criteria andServeContentLike(String value) {
            addCriterion("serve_content like", value, "serveContent");
            return (Criteria) this;
        }

        public Criteria andServeContentNotLike(String value) {
            addCriterion("serve_content not like", value, "serveContent");
            return (Criteria) this;
        }

        public Criteria andServeContentIn(List<String> values) {
            addCriterion("serve_content in", values, "serveContent");
            return (Criteria) this;
        }

        public Criteria andServeContentNotIn(List<String> values) {
            addCriterion("serve_content not in", values, "serveContent");
            return (Criteria) this;
        }

        public Criteria andServeContentBetween(String value1, String value2) {
            addCriterion("serve_content between", value1, value2, "serveContent");
            return (Criteria) this;
        }

        public Criteria andServeContentNotBetween(String value1, String value2) {
            addCriterion("serve_content not between", value1, value2, "serveContent");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }
    }
}